<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript">
function searchNameCheck(obj){
	var a = document.searchId;
	if(!a.searchName.value || a.searchName.value==""){
		alert('검색할 이름을 입력하세요!');
		a.searchName.focus();
		return false;
	}else if(!a.searchEmail.value || a.searchEmail.value==""){
		alert('검색할 이메일 입력하세요!');
		a.searchEmail.focus();
		return false;
	}else{
		return true;
	}
}


</script>
<div style="float: bottom;" align="center">
		<img src="<%=request.getContextPath() %>/image/idpass.png">
</div>
<form action="searchId.do" name="searchId" method="post" onsubmit="return searchNameCheck(this)">
	<table border="0" cellspacing="0" cellpadding="2" align="center">
		<tr>
			<td style="background: #d3d3d3;font-weight: bold">이름입력</td>
			<td>
				<input size="25" type="text" name="searchName" value="<c:if test="${not empty msg }">${msg }</c:if><c:if test="${empty msg }">${m_name }</c:if>"onclick={this.value=''}>
			</td>
			<td rowspan="2">
				<input type="submit" value="아이디찾기" style="width: 120px;height: 45px">
			</td>
		</tr>
		<tr>
			<td style="background: #d3d3d3;font-weight: bold">이메일입력</td>
			<td>
				<input size="25" type="text" name="searchEmail" value="<c:if test="${not empty msg }">${msg }</c:if><c:if test="${empty msg }">${m_email}</c:if>"onclick={this.value=''}>
			</td>
			
		</tr>
		<%-- <tr>
			<td width = "10px">ID</td><td><input type = "text" id="m_id" value="${member.m_id }" disabled></td><td></td>
		</tr> --%>
		<tr>
			<td style="background: #ffa7a7;font-weight: bold;color: white">ID확인</td><td><input type = "text" size="25" id="m_id" value="${m_id }" style="background-color: #fae0d4" disabled></td><td></td>
		</tr>
		<tr>
			<td colspan="3" align="center">
			<input type="button" value="로그인페이지" style="width: 120px;height: 22px" onclick="location.href='login.do'" >
			<input type="button" value="패스워드찾기" style="width: 120px;height: 22px" onclick="location.href='searchPass.do'" >
			</td><td></td>
		</tr>
	</table>
</form>